package com.tyanxie.asd.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.tyanxie.asd.model.SugarNumber

@Dao
interface SugarNumberDao {
    @Insert
    fun save(sugarNumber: SugarNumber): Long

    @Query("DELETE FROM sugar_number")
    fun truncate()

    @Query("SELECT * FROM sugar_number")
    fun all(): MutableList<SugarNumber>
}